package three;
import java.util.Scanner;

import javafx.scene.shape.Circle;
public class test {
    public static void main(String []args){
    	Scanner x=new Scanner(System.in);Scanner y=new Scanner(System.in);
    	circle a=new circle(10);
    	System.out.println("请输入半径为10的圆的周长和表面积：");
    	x=input.nextDouble();y=input.nextDouble();
    	if(x==a.getperimter()&&y==a.getArea()) {
    		System.out.println("回答错误，正确答案为" +a.getperimter() +y==a.getArea());
    	}else {
    		System.out.println("回答正确。");
    	}
    	juxing a1=new juxing(10,8);
    	System.out.println("请输入长为10宽为8的矩形的周长和表面积：");
    	x=input.nextDouble();y=input.nextDouble();
    	if(x==a1.getperimter()&&y==a1.getArea()) {
    		System.out.println("回答错误，正确答案为" +a1.getperimter() +y==a1.getArea());
    	}else {
    		System.out.println("回答正确。");
    	}
    	angle a2=new angle(3,4,5);
    	System.out.println("请输入边长分别为3,4,5的三角形的周长和表面积：");
    	x=input.nextDouble();y=input.nextDouble();
    	if(x==a2.getperimter()&&y==a2.getArea()) {
    		System.out.println("回答错误，正确答案为" +a2.getperimter() +y==a2.getArea());
    	}else {
    		System.out.println("回答正确。");
    	}
    	
    	ball b=new ball(10);
    	System.out.println("请输入半径为10的圆的体积和表面积：");
    	x=input.nextDouble();y=input.nextDouble();
    	if(x==b.getvolume()&&y==b.getArea()) {
    		System.out.println("回答错误，正确答案为" +b.getvolume() +y==b.getArea());
    	}else {
    		System.out.println("回答正确。");
    	}
    	cylinder b1=new cylinder(10，10);
    	System.out.println("请输入半径为10，高为10的圆柱的体积和表面积：");
    	x=input.nextDouble();y=input.nextDouble();
    	if(x==b1.getvolume()&&y==b1.getArea()) {
    		System.out.println("回答错误，正确答案为" +b1.getvolume() +y==b1.getArea());
    	}else {
    		System.out.println("回答正确。");
    	}
    	cone b2=new cone(10);
    	System.out.println("请输入半径为10高为10的圆锥的体积和表面积：");
    	x=input.nextDouble();y=input.nextDouble();
    	if(x==b2.getvolume()&&y==b2.getArea()) {
    		System.out.println("回答错误，正确答案为" +b2.getvolume() +y==b2.getArea());
    	}else {
    		System.out.println("回答正确。");
    	}
    }
}
